import React from 'react';
import {BASE_URL} from "../constants";
import BaseQueryBooks from "./BaseQueryBooks";

export default function CategoryBooks(props) {
    const categoryName = props.match.params.category
    const url = `${BASE_URL}/${categoryName}/books/`
    return <BaseQueryBooks url={url} {...props}/>;
};
